Optimal. Leaf size=231 \[ -\frac {2 c \cot (e+f x) \Pi \left (\frac {c}{c+d};\text {ArcSin}\left (\frac {\sqrt {c+d}}{\sqrt {c+d \sec (e+f x)}}\right )|\frac {c-d}{c+d}\right ) \sqrt {-\frac {d (1-\sec (e+f x))}{c+d \sec (e+f x)}} \sqrt {\frac {d (1+\sec (e+f x))}{c+d \sec (e+f x)}} (c+d \sec (e+f x))}{a \sqrt {c+d} f}-\frac {(c-d) E\left (\text {ArcSin}\left (\frac {\tan (e+f x)}{1+\sec (e+f x)}\right )|\frac {c-d}{c+d}\right ) \sqrt {\frac {1}{1+\sec (e+f x)}} \sqrt {c+d \sec (e+f x)}}{a f \sqrt {\frac {c+d \sec (e+f x)}{(c+d) (1+\sec (e+f x))}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 231, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {4012, 3865,
4053} \begin {gather*} -\frac {2 c \cot (e+f x) \sqrt {-\frac {d (1-\sec (e+f x))}{c+d \sec (e+f x)}} \sqrt {\frac {d (\sec (e+f x)+1)}{c+d \sec (e+f x)}} (c+d \sec (e+f x)) \Pi \left (\frac {c}{c+d};\text {ArcSin}\left (\frac {\sqrt {c+d}}{\sqrt {c+d \sec (e+f x)}}\right )|\frac {c-d}{c+d}\right )}{a f \sqrt {c+d}}-\frac {(c-d) \sqrt {\frac {1}{\sec (e+f x)+1}} \sqrt {c+d \sec (e+f x)} E\left (\text {ArcSin}\left (\frac {\tan (e+f x)}{\sec (e+f x)+1}\right )|\frac {c-d}{c+d}\right )}{a f \sqrt {\frac {c+d \sec (e+f x)}{(c+d) (\sec (e+f x)+1)}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3865
Rule 4012
Rule 4053
Rubi steps
\begin {align*} \int \frac {(c+d \sec (e+f x))^{3/2}}{a+a \sec (e+f x)} \, dx &=\frac {c \int \sqrt {c+d \sec (e+f x)} \, dx}{a}+(-c+d) \int \frac {\sec (e+f x) \sqrt {c+d \sec (e+f x)}}{a+a \sec (e+f x)} \, dx\\ &=-\frac {2 c \cot (e+f x) \Pi \left (\frac {c}{c+d};\sin ^{-1}\left (\frac {\sqrt {c+d}}{\sqrt {c+d \sec (e+f x)}}\right )|\frac {c-d}{c+d}\right ) \sqrt {-\frac {d (1-\sec (e+f x))}{c+d \sec (e+f x)}} \sqrt {\frac {d (1+\sec (e+f x))}{c+d \sec (e+f x)}} (c+d \sec (e+f x))}{a \sqrt {c+d} f}-\frac {(c-d) E\left (\sin ^{-1}\left (\frac {\tan (e+f x)}{1+\sec (e+f x)}\right )|\frac {c-d}{c+d}\right ) \sqrt {\frac {1}{1+\sec (e+f x)}} \sqrt {c+d \sec (e+f x)}}{a f \sqrt {\frac {c+d \sec (e+f x)}{(c+d) (1+\sec (e+f x))}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(810\) vs. \(2(231)=462\).
time = 33.95, size = 810, normalized size = 3.51 \begin {gather*} \frac {\cos ^2\left (\frac {e}{2}+\frac {f x}{2}\right ) (c+d \sec (e+f x))^{3/2} \left (2 \sec \left (\frac {1}{2} (e+f x)\right ) \left (-c \sin \left (\frac {1}{2} (e+f x)\right )+d \sin \left (\frac {1}{2} (e+f x)\right )\right )-2 (-c+d) \sin (e+f x)\right )}{f (d+c \cos (e+f x)) (a+a \sec (e+f x))}+\frac {2 \cos ^2\left (\frac {e}{2}+\frac {f x}{2}\right ) (c+d \sec (e+f x))^{3/2} \left (c^2 \tan \left (\frac {1}{2} (e+f x)\right )-d^2 \tan \left (\frac {1}{2} (e+f x)\right )-2 c^2 \tan ^3\left (\frac {1}{2} (e+f x)\right )+2 c d \tan ^3\left (\frac {1}{2} (e+f x)\right )+c^2 \tan ^5\left (\frac {1}{2} (e+f x)\right )-2 c d \tan ^5\left (\frac {1}{2} (e+f x)\right )+d^2 \tan ^5\left (\frac {1}{2} (e+f x)\right )-4 c^2 \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {c-d}{c+d}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {\frac {c+d-c \tan ^2\left (\frac {1}{2} (e+f x)\right )+d \tan ^2\left (\frac {1}{2} (e+f x)\right )}{c+d}}-4 c^2 \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {c-d}{c+d}\right ) \tan ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {\frac {c+d-c \tan ^2\left (\frac {1}{2} (e+f x)\right )+d \tan ^2\left (\frac {1}{2} (e+f x)\right )}{c+d}}+\left (c^2-d^2\right ) E\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {c-d}{c+d}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {\frac {c+d-c \tan ^2\left (\frac {1}{2} (e+f x)\right )+d \tan ^2\left (\frac {1}{2} (e+f x)\right )}{c+d}}+2 c (c-d) F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {c-d}{c+d}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (e+f x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {\frac {c+d-c \tan ^2\left (\frac {1}{2} (e+f x)\right )+d \tan ^2\left (\frac {1}{2} (e+f x)\right )}{c+d}}\right )}{f (d+c \cos (e+f x))^{3/2} \sqrt {\sec (e+f x)} (a+a \sec (e+f x)) \sqrt {\frac {1}{1-\tan ^2\left (\frac {1}{2} (e+f x)\right )}} \left (-1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right ) \left (1+\tan ^2\left (\frac {1}{2} (e+f x)\right )\right )^{3/2} \sqrt {\frac {c+d-c \tan ^2\left (\frac {1}{2} (e+f x)\right )+d \tan ^2\left (\frac {1}{2} (e+f x)\right )}{1+\tan ^2\left (\frac {1}{2} (e+f x)\right )}}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.53, size = 295, normalized size = 1.28
method | result | size |
default | \(-\frac {\sqrt {\frac {d +c \cos \left (f x +e \right )}{\cos \left (f x +e \right )}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {d +c \cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right ) \left (c +d \right )}}\, \left (\cos \left (f x +e \right )+1\right )^{2} \left (2 \EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {c -d}{c +d}}\right ) c^{2}-2 c \EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {c -d}{c +d}}\right ) d +\EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {c -d}{c +d}}\right ) c^{2}-\EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {c -d}{c +d}}\right ) d^{2}-4 c^{2} \EllipticPi \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, -1, \sqrt {\frac {c -d}{c +d}}\right )\right ) \left (-1+\cos \left (f x +e \right )\right )}{a f \left (d +c \cos \left (f x +e \right )\right ) \sin \left (f x +e \right )^{2}}\) | \(295\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {c \sqrt {c + d \sec {\left (e + f x \right )}}}{\sec {\left (e + f x \right )} + 1}\, dx + \int \frac {d \sqrt {c + d \sec {\left (e + f x \right )}} \sec {\left (e + f x \right )}}{\sec {\left (e + f x \right )} + 1}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c+\frac {d}{\cos \left (e+f\,x\right )}\right )}^{3/2}}{a+\frac {a}{\cos \left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________